  let agent = ''
  //#ifdef H5
	// agent = '/prefix'
  //#endif
const install = (Vue, vm) => {
	// let indexList = (params = {}) => vm.$H.post(agent+'/index/info/index', params);//测试
	let smsCode = (params = {}) => vm.$H.post('/account/sms',params);//发送验证码
	let codeImg = (params = {}) => vm.$H.post('/qrcode/index',params);//发送验证码
	let smsBind = (params = {}) => vm.$H.post('/account/bind_sendmsg ',params);//绑定手机号发送验证码
	let doReg = (params = {}) => vm.$H.post('/account/reg', params);//注册
	let loginReg = (params = {}) => vm.$H.post('/account/login_reg', params);//登录注册
	let doLogin = (params = {}) => vm.$H.post('/account/login', params);//登录
	let wXLogin = (params = {}) => vm.$H.post('/account/wxlogin', params);//微信登录
	let bindWX = (params = {}) => vm.$H.post('/account/bind_wx', params);//微信登录绑定手机号
	let bindReg = (params = {}) => vm.$H.post('/account/bind_reg', params);//绑定微信加注册
	let doForget = (params = {}) => vm.$H.post('/account/forget', params);//忘记密码
	let refreshToken = (params = {}) => vm.$H.post('/member/refresh_token');//更新token
	let app_version = (params = {}) => vm.$H.get('/souce/app_version',params);//版本检测
	
	let soucePopup = (params = {}) => vm.$H.post('/souce/popup',params);//首页弹窗
	let souceNotice = (params = {}) => vm.$H.post('/souce/notice',params);//公告
	let souceAds = (params = {}) => vm.$H.post('/souce/ads',params);//广告
	let goodsListMall = (params = {}) => vm.$H.post('/mall/goods_list',params);//商品列表
	let goodsListDetail = (params = {}) => vm.$H.post('/mall/goods_detail',params);//商品详情
	let souceIndex = (params = {}) => vm.$H.get('/souce/index',params);//素材中心
	let storeDetail = (params = {}) => vm.$H.get('/souce/store_detail',params);//商户详情
	
	// 个人中心
	let memberMerits = (params = {}) => vm.$H.post('/member/merits',params);//业绩查询
	let changeName = (params = {}) => vm.$H.post('/member/update_nickname',params);//修改昵称
	let memberIndex = (params = {}) => vm.$H.get('/member/index',params);//
	let problemList = (params = {}) => vm.$H.get('/souce/problem_list',params);//常见问题
	let problemDetail = (params = {}) => vm.$H.get('/souce/problem_detail',params);//常见问题详情
	let queryPayPwd = (params = {}) => vm.$H.get('/member/pay_pwd_status',params);//
	let changePayPwd = (params = {}) => vm.$H.post('/member/pay_pwd',params);//修改支付密码
	
	let couponMy = (params = {}) => vm.$H.post('/coupon/my',params);//我的服务
	let couponEvaluate = (params = {}) => vm.$H.post('/coupon/evaluate',params);//评价
	
	
	let points_transfer = (params = {}) => vm.$H.post('/member/points_transfer',params);//健康值划转
	let points_transfer_rule = (params = {}) => vm.$H.post('/member/points_transfer_rule',params);//信息
	let points_record = (params = {}) => vm.$H.post('/member/points_record',params);//健康值明细
	//地址
	let addressList = (params = {}) => vm.$H.post('/address/address_list',params);//地址列表
	let addressAdd = (params = {}) => vm.$H.post('/address/add',params);//新增地址
	let addressMess = (params = {}) => vm.$H.get('/address/my_address',params);//获取地址详情
	let addressEdit = (params = {}) => vm.$H.post('/address/address_edit',params);//修改地址
	let addressDel = (params = {}) => vm.$H.post('/address/address_del',params);//删除地址
	
	// 商家
	let souceStore = (params = {}) => vm.$H.post('/souce/store',params);//商家列表
	let storeIndex = (params = {}) => vm.$H.post('/store/index',params);//商家信息
	let storeCouponList = (params = {}) => vm.$H.post('/store/coupon_list',params);//核销记录
	let storeCouponOff = (params = {}) => vm.$H.post('/store/coupon_off',params);//核销
	//订单
	let ordersPre = (params = {}) => vm.$H.post('/order/orders_pre',params);//
	let ordersCreate = (params = {}) => vm.$H.post('/order/orders_create',params);//
	// let ordersPre = (parCams = {}) => vm.$H.post('/order/orders_pre',params);//预下单
	let ordersCancel = (params = {}) => vm.$H.post('/order/orders_cancel',params);//订单取消

	// let ordersPay = (parCams = {}) => vm.$H.post('/order/orders_pay',params);//支付订单
	let ordersPay = (params = {}) => vm.$H.post('/order/orders_pay',params);//支付订单
	let ordersList = (params = {}) => vm.$H.post('/order/order_list',params);//订单列表
	let ordersInfo = (params = {}) => vm.$H.post('/order/orders_info',params);//订单列表
	let ordersSub = (parCams = {}) => vm.$H.post('/order/orders_sub',params);//确认收货
	
	// 发现
	let activityList = (params = {}) => vm.$H.get('/find/activity_list',params);//文章列表
	let activityFabulous = (params = {}) => vm.$H.post('/find/fabulous',params);//文章点赞
	// let activityFabulous = (parCams = {}) => vm.$H.post('/find/fabulous',params);//文章点赞
	
	let inviteCode = (params = {}) => vm.$H.get('/member/invite_code',params);//邀请好友
	
	let questiontype = (params = {}) => vm.$H.post('/question/type',params);//分类
	let questionContent = (params = {}) => vm.$H.post('/question/content',params);//详情
	let frozenRecord = (params = {}) => vm.$H.post('/member/points_frozen_record',params);//伯乐奖记录
	let frozenTrransfer = (params = {}) => vm.$H.get('/member/points_frozen_transfer',params);//领取伯乐奖
	let teamList = (params = {}) => vm.$H.post('/member/team_list',params);//我的团队
	let teamAddRemarks = (params = {}) => vm.$H.get('/member/add_remarks',params);//团队备注
	let classCategoryList= (params = {}) => vm.$H.post('/college/category_list',params);//二级分类
	let classCollegeList= (params = {}) => vm.$H.get('/college/article_list',params);//语音、视频、文章列表
	
	//省市区
	let souceRegion= (params = {}) => vm.$H.get('/souce/region',params);//省市区
	//海带
	
	let souceKf= (params = {}) => vm.$H.get('/souce/kefu_info',params);//客服

	let shopUpName= (params = {}) => vm.$H.post('/seatent.shop/update_name',params);//店名
	let hotwords= (params = {}) => vm.$H.get('/seatent.goods/hotwords',params);//热搜
	let shopInfo= (params = {}) => vm.$H.get('/seatent.shop/info',params);//店铺信息
	let goodsCategory= (params = {}) => vm.$H.get('/seatent.goods/category',params);//商品分类
	let goodsGoods= (params = {}) => vm.$H.get('/seatent.goods/goods',params);//商品列表
	let goodsBrands= (params = {}) => vm.$H.get('/seatent.goods/brands',params);//品牌列表
	let goodsDetail= (params = {}) => vm.$H.get('/seatent.goods/detail',params);//商品详情
	let goodsSku= (params = {}) => vm.$H.get('/seatent.goods/sku',params);//商品sku
	let cartAlist= (params = {}) => vm.$H.get('/seatent.cart/alist',params);//购物车记录
	let cartOperate= (params = {}) => vm.$H.post('/seatent.cart/operate',params);//购物车操作
	let orderPre= (params = {}) => vm.$H.post('/seatent.order/pre',params);//确认订单
	let orderCreate= (params = {}) => vm.$H.post('/seatent.order/create',params);//创建订单
	let orderAlist= (params = {}) => vm.$H.get('/seatent.order/alist',params);//订单列表
	let orderDetail= (params = {}) => vm.$H.get('/seatent.order/detail',params);//订单详情
	let orderCancel= (params = {}) => vm.$H.post('/seatent.order/cancel',params);//取消订单
	let orderPay= (params = {}) => vm.$H.post('/seatent.order/pay',params);//支付订单
	let orderKuaidi= (params = {}) => vm.$H.post('/seatent.order/kuaidi',params);//支付订单
	let orderConfirm = (params = {}) => vm.$H.post('/seatent.order/confirm',params);//确认收货
	let callbackLogistics= (params = {}) => vm.$H.post('/seatent.callback/logistics',params);//物流回调
	let callbackGoods= (params = {}) => vm.$H.get('/seatent.callback/goods',params);//商品变动
	let idcardAlist= (params = {}) => vm.$H.get('/seatent.idcard/alist',params);//报关信息
	let idcardAdd = (params = {}) => vm.$H.post('/seatent.idcard/add',params);//报关信息
	let idcardEdit = (params = {}) => vm.$H.post('/seatent.idcard/edit',params);//报关信息
	let idcardDelete= (params = {}) => vm.$H.post('/seatent.idcard/delete',params);//报关信息
	
	let equityInfo= (params = {}) => vm.$H.post('/equity/info',params);//店主服务商初始数据
	let equityUpInfo= (params = {}) => vm.$H.get('/equity/upinfo',params);//店主服务商ID
	let equityCaseUser= (params = {}) => vm.$H.post('/equity/case_user',params);//店主服务商审计案例
	//魅力值
	let frozenQuery= (params = {}) => vm.$H.get('/point/frozen_query',params);//冻结通知
	let withdrawBankType= (params = {}) => vm.$H.post('/point/withdraw_bank_type',params);//申请银行卡类型
	let withdraw= (params = {}) => vm.$H.post('/point/withdraw',params);//申请提现 
	let withdrawLoadAccount= (params = {}) => vm.$H.post('/point/load_account',params);//提现账户
	
	
	vm.$u.api = {
		shopUpName,souceKf,orderKuaidi,
		idcardAlist,idcardAdd,idcardEdit,idcardDelete,
		souceRegion,shopInfo,hotwords,
		goodsCategory,goodsGoods,goodsBrands,goodsDetail,goodsSku,cartAlist,cartAlist,cartOperate,orderPre,
		orderCreate,orderAlist,orderDetail,orderCancel,orderPay,orderConfirm,callbackLogistics,callbackGoods,
		smsCode,codeImg,smsBind,doReg,loginReg,doLogin,wXLogin,bindWX,bindReg,doForget,refreshToken,app_version,
		problemList,problemDetail,addressList,addressAdd,addressMess,addressEdit,addressDel,
		questiontype,
		teamList,teamAddRemarks,
		classCategoryList,
		classCollegeList,
		souceNotice,souceAds,goodsListMall,goodsListDetail,
		souceIndex,soucePopup,couponEvaluate,
		souceStore,storeIndex,storeCouponList,storeCouponOff,
		ordersCreate,ordersPre,ordersCancel,ordersPay,ordersList,
		ordersSub,queryPayPwd,changePayPwd,ordersInfo,
		activityList,activityFabulous,couponMy,
		memberIndex,questionContent,memberMerits,
		inviteCode,changeName,
		points_transfer,points_transfer_rule,points_record,
		frozenRecord,frozenTrransfer,storeDetail,
		equityInfo,equityUpInfo,equityCaseUser,
		frozenQuery,withdrawBankType,withdraw,withdrawLoadAccount
	}
}
export default {
	install
}